<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5shiv.js"></script>
    <script type="text/javascript" src="lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>用户查看</title>
</head>
<body>
<div class="pd-20">
    <table class="table">
        <tbody>
        <tr>
            <th class="text-r" width="100">建议人用户名：</th>
            <td id="username"></td>
        </tr>
        <tr>
            <th class="text-r">建议人手机：</th>
            <td id="phone"></td>
        </tr>
        <tr>
            <th class="text-r">建议人邮箱：</th>
            <td id="email"></td>
        </tr>
        <tr>
            <th class="text-r">建议时间：</th>
            <td id="createTime"></td>
        </tr>
        <tr>
            <th class="text-r" style="vertical-align: top;">建议内容：</th>
            <td id="advice"></td>
        </tr>
        <tr>
            <th class="text-r" style="vertical-align: top;">回复：</th>
            <td id="reply"></td>
        </tr>
        </tbody>
    </table>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="lib/common.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
    $(function () {
        var id = parent.getId();
        $.get("/advice/"+id,function (data) {
            var result = data.result;
            $("#username").html(result.username);
            $("#phone").html(result.phone);
            $("#email").html(result.email);
            $("#createTime").html(date(result.createTime));
            $("#advice").html(result.advice);
            if (result.reply){
                $("#reply").html(result.reply);
            } else{
                $("#reply").html("暂无回复");
            }

        })
    })

</script>
</body>
</html>
